Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@ephox/sugar
Advanced tools
sugar
is a library for manipulating and accessing the DOM. It does not bundle any commands. It is only a collection of modules.
sugar
is available as an npm
package. You can install it via the npm package @ephox/sugar
npm install @ephox/sugar
sugar
is the base DOM library used in many projects. It has an API which is broken up into seven main packages. Do not use any modules directly that are not in an api
package.
dom
: mostly handles inserting, appending, and manipulating individual DOM nodes.
events
: handles DOM events and listeners
node
: handles different types of nodes such as comments, elements, and text nodes
properties
: handles reading, writing, and removing style properties, attributes, and values
search
: handles searching for DOM nodes based on selectors, predicates, and DOM position
selection
: handles browser ranges and selection
tag
: handles specialised HTML tags like option
and select
view
: handles scrolling, visibility, and measurements
sugar
uses bedrock
to run tests. This is packaged as a dev dependency of sugar
. To run the tests, use:
$ yarn test
FAQs
Basic DOM manipulation
The npm package @ephox/sugar receives a total of 7,146 weekly downloads. As such, @ephox/sugar popularity was classified as popular.
We found that @ephox/sugar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.